home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / MAC OS 8 / cmm-framework-10.sit / Trygve's CMM Framework 1.0 / Sample Plugin (upper_lower) / Plugin.h < prev    next >
Text File  |  1997-08-28  |  1KB  |  45 lines

  1. //
  2. // Copyright ゥ1997 by Trygve Isaacson. All Rights Reserved.
  3. //
  4. // Additional Restrictions:
  5. //
  6. // Permission granted to:
  7. // - Compile this source code.
  8. // - Modify this source code, but not to remove this copyright information.
  9. // - Freely distribute the compiled object form of this source code, and any
  10. //   modifications you make, in your programs.
  11. //
  12. // Permission NOT granted to:
  13. // - Redistribute modified versions of this source code.
  14. //
  15. // You grant Trygve Isaacson one single-user license to your plugins based
  16. // on this source code, and notify him at:
  17. // trygve@bombaydigital.com
  18. //
  19.  
  20. #define kPluginCodeFragString "Sample CMM Plug-In Resource"
  21.  
  22. #ifndef REZ
  23.  
  24. #pragma once
  25.  
  26. #include "PluginBase.h"
  27.  
  28. class Plugin : public PluginBase
  29.     {
  30.     public:
  31.     
  32.         Plugin();
  33.         virtual ~Plugin();
  34.  
  35.     protected:
  36.  
  37.         virtual Boolean        IsDesiredFSSpec(const FSSpec* aFileSpec, SInt32 commandID, Boolean isExaminePhase);
  38.         virtual Boolean        ModifiesDataFork(FSSpec* aFile, SInt32 commandID);
  39.         virtual Boolean        AddMultiDataTypeCommand(AEDescList* commandList, UInt32 numDataTypes, OSType* dataTypesArray, UInt32 numDataTypesFound);
  40.         virtual    OSStatus    AlterDataFork(SInt16 origFileRefnum, SInt16 tempFileRefnum, SInt32 commandID);
  41.     };
  42.  
  43. #endif // REZ
  44.  
  45.